//
//  NWViewController+HBDNavigationBar.h
//  NongWanCloud
//
//  Created by YueWen on 2018/5/8.
//  Copyright © 2018年 YueWen. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@protocol HBDNavigationBarExtend <NSObject>

@optional

/// 导航栏的状态
@property (nonatomic, assign, readonly) UIBarStyle nav_barStyle;
/// 导航栏背景的颜色
@property (nonatomic, strong, readonly) UIColor *nav_barTintColor;//white
/// 导航栏背景的图片
@property (nonatomic, strong, readonly, nullable) UIImage *nav_barImage; //nil
/// 导航栏默认按钮颜色
@property (nonatomic, strong, readonly) UIColor *nav_tintColor; //Theme
/// 导航栏透明度
@property (nonatomic, assign, readonly) float nav_barAlpha;//1.0
/// 导航栏是否隐藏
@property (nonatomic, assign, readonly) BOOL nav_barHidden;//false
/// 导航栏shadowView是否隐藏
@property (nonatomic, assign, readonly) BOOL nav_barShadowHidden;//false
/// 导航是否响应返回手势
@property (nonatomic, assign, readonly) BOOL nav_backInteractive;//true
/// 导航栏标题的属性
@property (nonatomic, strong, readonly, nullable) NSDictionary *nav_titleTextAttributes;
/// 导航栏标题的颜色
@property (nonatomic, strong, readonly) UIColor *nav_titleColor;//black
/// 导航栏背景的字体
@property (nonatomic, strong, readonly) UIFont *nav_titleFont;//16
/// 导航栏shadowView的图片
@property (nonatomic, strong, readonly, nullable) UIImage *nav_shadowImage;//nil
/// 导航栏的shadowView是否动态隐藏(不是真的隐藏)
@property (nonatomic, assign, readonly) BOOL nav_mutableBarShadowHidden;//false

@end

@interface UIViewController (HBDNavigationBar)<HBDNavigationBarExtend>

/// nav_mutableBarShadowHidden:true  用来唤起是否隐藏shadowView的方法
- (void)setNavigationBarShadowViewHidden:(BOOL)isHidden;

/// 设置默认的属性
- (void)setDefaultNavigationBarWhenHasParentNavigationController;

@end

NS_ASSUME_NONNULL_END
